//
//  FindPasswordTableViewCellZero.h
//  CommunityNannyO2O
//
//  Created by apple on 15/8/13.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import "FindPasswordTableViewCellZero.h"
#import "APIAdress.h"
#import "MBProgressHUD+YC.h"
#import "MJExtension.h"
#import "AccountTool.h"
#import "UIViewController+Create.h"
#import "CustomTextField.h"
#import "AppConfig.h"
#import "FindPasswordTableViewCellZero.h"
#import "QXNetWorkTool.h"

@interface FindPasswordTableViewCellZero()

@property (weak, nonatomic) IBOutlet UILabel  *phone;
@property (weak, nonatomic) IBOutlet UILabel  *phoneVerification;
@property (weak, nonatomic) IBOutlet UILabel  *verification;

-(void)setLabelColor:(UIColor*)color Index:(int)index;

@end

@implementation FindPasswordTableViewCellZero

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"FindPasswordTableViewCellZero";
    FindPasswordTableViewCellZero *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:nil options:nil]firstObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
}

-(void)setLabelColor:(UIColor*)color Index:(int)index
{
    UIColor *temp = UIColorRGBA(0, 0, 0, 1);
    self.phone.textColor = temp;
    self.phoneVerification.textColor = temp;
    self.verification.textColor = temp;
    
    if (index == 0)
    {
        self.phone.textColor = color;
    }
    else if (index == 1)
    {
        self.phoneVerification.textColor = color;
    }
    else if (index == 2)
    {
        self.verification.textColor = color;
    }
}

-(void)awakeFromNib
{

}


@end




















